package com.pine.app.module.security.oauth.config.properties;

import lombok.Getter;
import lombok.Setter;

/**
 * @author xiaoyuan
 * @create 2020/3/20 17:21
 **/
@Setter
@Getter
public class ClientDetail {

    /**
     * Oauth2 clientId
     */
    private String clientId = "browser";
    /**
     * Oauth2 clientSecret
     */
    private String clientSecret = "ui";
    private String clientName = "掘金";
    /**
     * 客户端授权类型集合
     */
    private String[] grantTypes = new String[]{"password","refresh_token","client_credentials","authorization_code"};
    /**
     * 客户端作用域集合
     */
    private String[] scopes = new String[]{"ui"};
    /**
     * 跳转地址集合
     */

    private String[] redictUrls = new String[]{"http://auth.admin1.com:8081/auth/login"};

    /**
     * token校验时间
     */
    private Integer accessTokenValiditySeconds = 3 * 60;
    /**
     * 刷新token校验时间
     */
    private Integer refreshTokenValiditySeconds = 7 * 24 * 60 * 60;
}
